package com.sjy.project.ent.yearSta.service.impl;

import java.util.List;
import com.sjy.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sjy.project.ent.yearSta.mapper.EntAppealRentInLandMapper;
import com.sjy.project.ent.yearSta.domain.EntAppealRentInLand;
import com.sjy.project.ent.yearSta.service.IEntAppealRentInLandService;
import com.sjy.common.utils.text.Convert;

/**
 * 企业申诉-承租土地Service业务层处理
 * 
 * @author ljb
 * @date 2022-07-09
 */
@Service
public class EntAppealRentInLandServiceImpl implements IEntAppealRentInLandService 
{
    @Autowired
    private EntAppealRentInLandMapper entAppealRentInLandMapper;

    /**
     * 查询企业申诉-承租土地
     * 
     * @param id 企业申诉-承租土地主键
     * @return 企业申诉-承租土地
     */
    @Override
    public EntAppealRentInLand selectEntAppealRentInLandById(Long id)
    {
        return entAppealRentInLandMapper.selectEntAppealRentInLandById(id);
    }

    /**
     * 查询企业申诉-承租土地列表
     * 
     * @param entAppealRentInLand 企业申诉-承租土地
     * @return 企业申诉-承租土地
     */
    @Override
    public List<EntAppealRentInLand> selectEntAppealRentInLandList(EntAppealRentInLand entAppealRentInLand)
    {
        return entAppealRentInLandMapper.selectEntAppealRentInLandList(entAppealRentInLand);
    }

    /**
     * 新增企业申诉-承租土地
     * 
     * @param entAppealRentInLand 企业申诉-承租土地
     * @return 结果
     */
    @Override
    public int insertEntAppealRentInLand(EntAppealRentInLand entAppealRentInLand)
    {
        entAppealRentInLand.setCreateTime(DateUtils.getNowDate());
        return entAppealRentInLandMapper.insertEntAppealRentInLand(entAppealRentInLand);
    }

    /**
     * 修改企业申诉-承租土地
     * 
     * @param entAppealRentInLand 企业申诉-承租土地
     * @return 结果
     */
    @Override
    public int updateEntAppealRentInLand(EntAppealRentInLand entAppealRentInLand)
    {
        entAppealRentInLand.setUpdateTime(DateUtils.getNowDate());
        return entAppealRentInLandMapper.updateEntAppealRentInLand(entAppealRentInLand);
    }

    /**
     * 批量删除企业申诉-承租土地
     * 
     * @param ids 需要删除的企业申诉-承租土地主键
     * @return 结果
     */
    @Override
    public int deleteEntAppealRentInLandByIds(String ids)
    {
        return entAppealRentInLandMapper.deleteEntAppealRentInLandByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除企业申诉-承租土地信息
     * 
     * @param id 企业申诉-承租土地主键
     * @return 结果
     */
    @Override
    public int deleteEntAppealRentInLandById(Long id)
    {
        return entAppealRentInLandMapper.deleteEntAppealRentInLandById(id);
    }
}
